<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            background-color: yellow;
            width: 300px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    </style>
</head>
<body>
        <div>
            Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium aliquam asperiores atque autem commodi Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium
            aliquam asperiores atque autem commodi Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium aliquam asperiores atque autem commodi Lorem ipsum dolor sitamet, consectetur
            adipisicing elit. Accus   Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium
            aliquam asperiores atque autem commodi Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium aliquam asperiores atque autem commodi Lorem ipsum dolor sitamet, consectetur adipisicing elit. Accus
        </div>

</body>
</html>